<?php
	class Controller_Category extends Controller
	{
		public function index($args)
		{
			$cat_access= new Model_Category_Access();
			$obj=$cat_access->showall();
			foreach ($obj as $a ){
				 echo $a->cat_name.'<br />';
			}
			
		}
		
		public function display($args)
		{
			
			$cat_access= new Model_Category_Access();
			$obj=$cat_access->showById($args[0]);
			echo $obj->cat_name;
		}
	}
?>